package ext.vpde.cadvaulting.util;

import wt.util.WTProperties;

public class SJTCProperties {

   private static String jdbcDriver = null;
   private static String jdbcURL    = null;
   private static String dbUser     = null;
   private static String dbPass     = null;

   public static String getDriver() { return jdbcDriver; }   
   public static String getURL()    { return jdbcURL;    }   
   public static String getDBUser() { return dbUser;     }
   public static String getDBPass() { return dbPass;     }
   
   static {
    	try {
    		WTProperties WTProps = WTProperties.getLocalProperties();
    		jdbcDriver = WTProps.getProperty("ext.vpde.globalvault.jdbc.driver");
    		jdbcURL    = WTProps.getProperty("ext.vpde.globalvault.jdbc.url");
    		dbUser     = WTProps.getProperty("ext.vpde.globalvault.dbUser");
    		dbPass     = WTProps.getProperty("ext.vpde.globalvault.dbPassword");  		
    	}
    	catch (Exception e) { System.out.println("Cannot read properties"); }
    }
}
